package com.hx.dc.dao;

import com.hx.dc.entity.CommoDity;
import com.hx.dc.entity.MenuPlan;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface BaseMapper<T> {
	/*       处理单个                处理列表
	 * 通用      insert        insertList
	 * 特殊     insertXxx      insertXxxList
	 * 
	 *        delete        deleteList
	 *       deleteXxx      deleteXxxList
	 *       
	 *        update        updateList
	 *       updateXxx      updateXxxList
	 *       
	 *        select        selectList
	 *       selectXxx      selectXxxList
	 */
   
	//新增
	public int insert(T t);
	
	public int delete(T t);
	
	//根据多个主键删除
	public int deleteList(List<String> keys);
	
	public int update(T t);

	public int updateDisable(T t);

	public int updateAble(T t);
	
	public T select(T t);
	
	public List<T> selectList(T t);

	public List<T> selectTime(T t);

	public List<T> selectName(T t);

	public List<T> search(T t);
	
	//分页查询数据列表
	List<T> selectPageList(T t);
}